package cn.leyaber.hrm.domain;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author ma.rui.kai
 * @since 2020-11-03
 */
@TableName("t_product")
public class Product extends Model<Product> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 服务名称
     */
    private String name;
    /**
     * 存放fastdfs地址，多个资源使用，分割
     */
    private String resources;
    private BigDecimal saleprice;
    private Date offsaletime;
    private Date onsaletime;
    /**
     * 状态：0下架 1上架
     */
    private Long state;
    private String costprice;
    private Date createtime;
    private Long salecount;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getResources() {
        return resources;
    }

    public void setResources(String resources) {
        this.resources = resources;
    }

    public BigDecimal getSaleprice() {
        return saleprice;
    }

    public void setSaleprice(BigDecimal saleprice) {
        this.saleprice = saleprice;
    }

    public Date getOffsaletime() {
        return offsaletime;
    }

    public void setOffsaletime(Date offsaletime) {
        this.offsaletime = offsaletime;
    }

    public Date getOnsaletime() {
        return onsaletime;
    }

    public void setOnsaletime(Date onsaletime) {
        this.onsaletime = onsaletime;
    }

    public Long getState() {
        return state;
    }

    public void setState(Long state) {
        this.state = state;
    }

    public String getCostprice() {
        return costprice;
    }

    public void setCostprice(String costprice) {
        this.costprice = costprice;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Long getSalecount() {
        return salecount;
    }

    public void setSalecount(Long salecount) {
        this.salecount = salecount;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Product{" +
        ", id=" + id +
        ", name=" + name +
        ", resources=" + resources +
        ", saleprice=" + saleprice +
        ", offsaletime=" + offsaletime +
        ", onsaletime=" + onsaletime +
        ", state=" + state +
        ", costprice=" + costprice +
        ", createtime=" + createtime +
        ", salecount=" + salecount +
        "}";
    }
}
